Only a political, humanitarian path could bring war to end, says French president after talks with Jordanian, Egyptian leaders