A measurement of the tau hadronic branching ratios