Measurement of the tau lepton lifetime with the three-dimensional impact parameter method