Food prices in December saw their biggest jump in more than three years, data shows, while the cost of eating out has also risen.