Search for high-mass resonances decaying into tau-lepton pairs in pp collisions at sqrt(s) = 7 TeV