S&P 500 hits new all-time high as US stocks open higher