Visiting a school in the southern town of Mende, the French president defended a ban on smartphones in schools, arguing they are a distraction and an obstacle to learning.