The solar cycle and terrestrial climate