S&P 500 closes at a record high amid softening macro concerns