Search for dark matter produced in association with a leptonically decaying Z boson in proton-proton collisions at $\sqrt{s}=$ 13 TeV