A quarter of working-age adults use credit cards to purchase groceries but struggle to repay their debts, a new study finds.