Agreement signed to end hunger strike by Palestinians