Solar activity, cosmic rays, and Earth's temperature: A millennium‐scale comparison