(Reuters) - The S&P 500 and the Nasdaq closed at record highs on Tuesday in the first session of the new year as investors were optimistic that 2018 will bring more gains for the market.