Myanmar president resigns