Three Israeli captives have been returned to Israel after being released by Hamas in Gaza as part of the ceasefire agreement.