Brazil’s political ‘transition has begun’ after days of tension