Annamalai resigns