Ten migrant workers have been detained in Perak, with some alleged to have been assaulted by state immigration officials, according to a support group.