Consumers stepped up their spending at a better-than-expected pace in August after an unexpectedly sharp pullback in July.