Palestinian President Mahmud Abbas and the exiled political leader of the militant group Hamas have held a rare meeting in Cairo , their first since their parties formed a coalition government .