Retailers like Walmart and Best Buy are cutting staff as consumers pull back on discretionary spending.