Search for leptonic decays of W′ bosons in pp collisions at sqrt(s) = 7 TeV