Dow, S&P 500 and NASDAQ close at record highs