Rise in food prices reverses three-month downtrend in CPI inflation