Rights group accuses PA and Hamas of torture