As prices rise, consumers are treating themselves with snacks