S&P 500 closes at a new all-time high as fresh data drives optimism for rate cuts