The AGN–galaxy–halo connection: the distribution of AGN host halo masses to z = 2.5