Phil Goff resigns as Labour leader