Bartomeu resigns as president of Barcelona