Hamas has handed three hostages over to the Red Cross in the Gaza Strip as part of its ceasefire deal with Israel.