Stock market today: S&P 500 closes at a record high as stocks rise on cooler April inflation