Fock-space coupled-cluster method in the intermediate Hamiltonian formulation: Model with singles and doubles