In an arrangement that breaks dayslong logjam, Hamas has said that hostages' bodies will be released in exchange for Palestinian prisoners held by Israel