Dow sets third straight record high before closing 0.3% lower