Search for doubly charged Higgs bosons with lepton-flavor-violating decays involving tau leptons