Thousands of African immigrants are leaving South Africa because of a rise in anti-migration anger that sparked attacks against foreigners