Search for electroweak production of charginos and neutralinos in proton-proton collisions at $\sqrt{s} = $ 13 TeV