Search for high-mass resonances decaying into τ-lepton pairs in pp collisions at √s = 7 TeV