Retail sales rose at their slowest pace in nearly a year in October as American consumers showed signs of strain from high prices.