Safety to take legal action after year-long investigation into chat platform, alleging failure to comply with Online Safety Act.