Lepton flavor violation in the Higgs sector and the role of hadronic $\tau$-lepton decays