Three Israeli hostages have been exchanged for 183 Palestinian prisoners as part of an internationally brokered Gaza ceasefire deal.