French prosecutors have opened an investigation into X over allegations that it distorted its algorithms.