Amazon to invest up to $4B in AI firm Anthropic