High Court rules decision by successive rabbinical courts to punish wife who cheated by depriving her of joint assets collected in 27 years of marriage, contradicts law and relies on irrelevant sexual behavior