Portland mayor joins protest, security detail later struggles with rioters