Hundreds of Ghanaians are leaving South Africa on special repatriation flights as anti-immigration protests and violence against foreigners escalate in the richer African nation.