Shoppers are so scarred by inflation they’ve cemented new habits to save money—and discount retailers are the big winners