Stock market today: S&P 500 edges higher to new record as traders brace for Nvidia earnings