Nasdaq 100 and S&P 500 close at record highs as tech stocks lead gains. U.S. Treasury Secretary Janet Yellen expresses optimism about disinflation progress. Market anticipates rate cut in September.