The statistical mechanics of assemblies of axially symmetric molecules - I. General theory