Analytic model for the matter power spectrum, its covariance matrix and baryonic effects