WA treasurer to quit politics next year