Search for a right-handed W boson and a heavy neutrino in proton-proton collisions at $\sqrt{s} =$ 13 TeV