U.S. stocks closed mostly lower on Wednesday, with the S&P 500 falling from a record high after data signaled a…