Dow closes at record high as tech losses drag S&P 500, Nasdaq lower