Nasdaq hits all-time high at open; S&P 500 just shy of record level