Latham quits as Australian Labor leader