Constraints on anomalous HVV couplings from the production of Higgs bosons decaying to τ lepton pairs