Locally renormalized coupled-cluster equations for singly and doubly excited clusters