Separating forced from chaotic climate variability over the past millennium