Measurement of the D∗ branching ratios