Jet substructure templates: data-driven QCD backgrounds for fat jet searches