US stocks were set for a modest retreat from their latest record highs as concerns around trade tariffs weighed on sentiment.