Food prices rose at their quickest pace since 2008, as overall inflation remains near a 40-year high.