1. Disable "Enable Account Creation" under "Users and Teams" in System Console.
2. Click “Invite others to this team” link in header of a “Town Square” channel.
See Screenshot 1 - you're able to invite new users to create an account.
You're not able to invite new users to create an account, only search and invite existing members to a team. See Screenshot 2.