US stocks edge up as investors look to push the S&P 500 to new all-time high