Consistent estimation of time-varying loadings in high-dimensional factor models