High-frequency radio observations of the Kühr sample and the epoch-dependent luminosity function of flat-spectrum quasars