Nestle decided to quit the ice cream sector in South Africa as its business - which the food group has agreed to sell to UK-based R&R Ice Cream - was not "sustainable".