The three-loop QCD β-function and anomalous dimensions