June 23 (Reuters) - The Nasdaq climbed to a record-high close on Wednesday, fueled by a rally in Tesla Inc , while the S&P 500 dipped, even as investors cheered data that showed a record peak for U.S. factory activity in June.Gains in Nvidia Corp and Facebook Inc extended a recent rebound in top-shelf growth stocks that fell out of favor in recent months as investors focused on companies expected to do well as the economy recovers from the pandemic.Data firm IHS Markit said its flash U.S. manufacturing Purchasing Managers' Index rose to a reading of 62.6 this month, beating estimates of 61.5, but manufacturers are still struggling to secure raw materials and qualified workers, substantially raising prices.The "high level of today's surveys will provide some confirmation for the Fed tha