Brazilian police have detained an Irishman for allegedly touting ticket to events at the Rio Olympics.