Americans are increasingly shifting their spending to necessities and away from nonessentials like apparel. That has resulted in solid sales gains in July for low-priced operators like Wal-Mart Stores Inc. and sluggish sales for mall-based apparel chains.