Hamas militants have handed over four captive female Israeli soldiers to the Red Cross in Gaza City after parading them in front of a crowd.