US food giant Kraft Heinz is to sell its 50.1% stake in South African business Heinz Foods SA to joint venture partner Pioneer Foods.