Head coach of Australia Darren Lehmann says he will quit at the end of the current Test series following the ball tampering revelations.