Palestinian president and Hamas chief hold rare meeting