S&P 500 and Nasdaq notch record closes as Apple hits 7th straight record close