Hamas, Fatah fail to agree on prime minister