'Very minor details remain' to secure Israel-Hamas hostage deal, Qatari leader says