Home Stock market today: S&P 500 closes at record to wrap up best month of 2024