Hamas slams German president's remarks about ICC