The cost of groceries has risen by more than 25 percent since February 2020, the fastest since the 1970s.