US stocks retreat from record highs