Solar and climatic cycles in the past