Noisy covariance matrices and portfolio optimization