Common long term periodicities in cosmogenic and climatic records over the last 3000 years