Palestinian president, Hamas chief hold rare meeting