Three female Israelis have been freed by Hamas, the first of several dozen hostages set to be released under a new ceasefire deal in Gaza.