The role of chaotic resonances in the Solar System