Measurements of the leptonic branching fractions of the tau