New Zealand PM John Key announces resignation