Series representation and asymptotics for Titchmarsh-Weyl $m$-functions