Postresql Client and Version Mismatch
createdb doesn't create a new database instance (aka 'cluster', unfortunately, as that term has grown other uses).  It just creates a new database in an already running instance, same as the CREATE DATABASE SQL command does.
To create a new instance use initdb or pg_ctl initdb.
You clearly already have a 9.6 instance created and running.  You should probably figure out why and what is in it, and either shut it down, shut it down and delete it, or upgrade it.  You could leave it running and pick a new port of your new instance, but that is likely to create even more confusion of the same sort you already have.