Precision measurement of the W boson decay branching fractions in proton-proton collisions at $\sqrt{s} =$ 13 TeV