Manmohan Singh heads to South Africa to build trade ties