Mali’s president resigns after military coup