S&P 500 closes at new record high; Dow above 18,000