US stocks retreat from records amid global sell-off