France plans to tackle the spread of jihadist ideology in the country's prisons by setting aside designated wards for inmates at risk of radicalisation.