Study of top quark production and decays involving a tau lepton at CDF and limits on a charged Higgs boson contribution