Cash accounted for nearly one in every five retail transactions last year, according to a trade association, as households made smaller purchases to eke out their budgets.