Periodicities in solar activity and their signature in the terrestrial environment