The S&P 500 and Nasdaq Composite drew within 1% of their record highs as U.S. markets rose behind strong October consumer data.