Bayern Munich's president resigns