US retail sales in August were boosted by back-to-school shoppers, with most retailers booking sales gains over the month.