Daryl Maguire resigns as Wagga MP more than three weeks after ICAC hearing brought his political career to an end