France to pull hundreds of troops from Afghanistan