Tests of the standard model and constraints on new physics from measurements of fermion-pair production at 189-209 GeV at LEP