Measurement of W±γ differential cross sections in proton-proton collisions at s =13 TeV and effective field theory constraints