More than 400 migrants were illegally detained at processing centres, Home Office emails claim