The stock market has had a bumpy start to the year, with the S&P 500 down about 6% year to date at the time of writing.