The cost of living rose more than expected in February driven by sharp hikes in food prices.