When creating a new team, scroll to the bottom of the team setup screen. A list of available hats will appear, and you can choose one for your team.