Positive Definite High-dimensional Covariance Estimation Under a General Factor Model with High-frequency Data