A new dynamical mechanism for major climate shifts