The S&P 500 gained 4.48% in January with dividends added, its best opening month since 1997 when the index increased 6.13% and went on to return 31.01% for the year.