Talks between Israel and Hamas about a ceasefire in Gaza have resumed in Qatar, after US President Joe Biden indicated a deal to stop the fighting was "on the brink".