According to joint statement, groups agree on the formation of an ‘election court’ to rule in any legal election disputes; Fatah police to guard voting sites in West Bank and Hamas forces to monitor proceedings in Gaza