Search for the rare decay of the W boson into a pion and a photon in proton-proton collisions at s=13TeV