Palestinian unity deal exposes divisions in Hamas