Coupled-cluster theory for the polarizable continuum model. III. A response theory for molecules in solution