If you wish to leave a team, you must go to the Teams section located in the last icon on the bottom bar of the screen.
Once there, you must click on the About team option located at the top of the screen. When you do so, a new screen will appear where you will be able to select the Leave team option, which you will see in a red box.