Search for direct pair production of supersymmetric partners to the $τ$ lepton in proton-proton collisions at $\sqrt{s} =$ 13 TeV