The UN rights chief has criticised the "abhorrent" behaviour of Hamas for displaying the coffins of four Israeli hostages.