Four female hostages have been released by Hamas in exchange for 200 Palestinian prisoners released by Israel.