Barcelona's chairman Rosell resigns