Qatar has withdrawn as a mediator in ceasefire and hostage release talks between Israel and Hamas, reports say.