A 23-year-old man has been arrested after his plot to try and assassinate the French President was uncovered by the users of a video game forum.