Rising anti-immigrant sentiment has hit several popular companies in South Africa, including Shoprite, Uber and Sweepsouth.