The latest selloff in tech stocks was sparked by Anthropic after it said it was launching a new artificial intelligence (AI) tool servicing legal work, threatening software firms.