Beijing says it brokered the deal during reconciliation talks between 14 Palestinian groups which began in the Chinese capital on Sunday.