Performance of single-reference coupled-cluster methods for quasidegenerate problems: The H4 model