The big-box retailer has stressed lower prices and higher-frequency categories, such as groceries, as shoppers buy fewer discretionary items.