Daniel Andrews resigns as premier of Victoria