Search for a W ′ boson decaying to a τ lepton and a neutrino in proton-proton collisions at √s =13TeV