South Africa is suffering a drop in its workforce, following the departure of thousands of foreign workers in the wake of a wave of xenophobic attacks, anti-migrant protests and intensified immigration enforcement.