The S&P 500 hit a record high, supported by rising technology stocks, declining oil prices and hopes for a positive earnings season.