rhad: A program for the evaluation of the hadronic R-ratio in the perturbative regime of QCD