Dynamic Covariance Matrix Estimation and Portfolio Analysiswith High-Frequency Data