Pope Francis has hailed the release of Cuban prisoners as a “gesture of great hope” that he prays will be undertaken elsewhere.