Hamas and Israel have been exchanging hostages and prisoners - in the fourth swap of a fragile ceasefire in Gaza.