Amid race with Anthropic, firm plans to overhaul research and training and require more safety parameters after hack