Search for a heavy charged boson in events with a charged lepton and missing transverse momentum from $pp$ collisions at $\sqrts = 13$ TeV with the ATLAS detector