Artificial intelligence firm Anthropic has announced that it will commit 5% of its shares to a public benefit fund. The move comes as the company prepares for a major stock market listing.