The S&P 500 and the Nasdaq hit all-time highs as inflation slows and interest rate cut hopes persist