Anthropic has surged to a $965bn (£720bn) valuation, eclipsing ChatGPT developer OpenAI for the first time in the race to build a trillion-dollar AI giant.