A measurement of the tau leptonic branching fractions