S&P 500 dented by earnings; Dow hits record high