Search for vector-like T quarks decaying to top quarks and Higgs bosons in the all-hadronic channel using jet substructure