Performance of tau-lepton reconstruction and identification in CMS