US major gauges retreated from fresh records as tech earnings after-hours dragged markets down.