Detecting changes in the dependence structure of a time series