Equation of state of cold and dense QCD matter in resummed perturbation theory