PARIS — French prosecutors raided the offices of social media platform X on Tuesday as part of a preliminary investigation into allegations including spreading child sexual abuse images and deepfakes.