Nestle, the world's largest food maker, is to build two production plants in South Africa.