Locally adaptive factor processes for multivariate time series