Three Israeli captives have been returned to Israel from Gaza after Hamas released them as part of the ceasefire deal.