The S&P 500 on Wednesday posted its 70th record close of 2021, bringing its year-to-date return to 27.6%.