U.S. stock funds surge 17.1% in Q2 as AI rally fuels records