A shell-model study of the light Cd isotopes