Consumer inflation in China rose to a five-month high on the back of higher spending in the lead-up to the Lunar New Year.