After nine years in office, Labor's longest serving premier Daniel Andrews has announced he will resign.