Malaysia’s 94-year-old Prime Minister Mahathir Mohamad resigned on Monday, plunging the country into political turmoil less than two years after a surprise election victory.