A general model-space coupled-cluster method using a Hilbert-space approach