The fate of the Gaza ceasefire is unclear after Hamas and Israel completed the last exchange of bodies and prisoners.