The perverse filtration and the Lefschetz hyperplane theorem