Generalised representations as q-connections in integral $p$-adic Hodge theory