Barcelona president Josep Maria Bartomeu resigns