Consumers are facing the highest inflation rates on the record in more than 40 years. It can be easy to end up taking on debt just to make ends meet.