Resonances and close approaches. I. The Titan-Hyperion case