Search for a W' boson decaying to a muon and a neutrino in pp collisions at sqrt(s)=7TeV