US stocks close at record highs as tech gains, lower yields lift markets