Studies of the Jahn-Teller effect. I. A survey of the static problem