South Africa inflation rises less than expected, helped by food