A precise measurement of the tau lifetime