Detecting structural beaks in the degree of dependence between time series