Reconstruction and identification of tau decays at CMS