Israel agreed Monday to hand over security control of two West Bank towns to the Palestinians , a transfer the Palestinians have sought in fitful negotiations since a truce declared by the two sides five weeks ago .