Structural phase transitions in hexagonal ABCl3 Jahn-Teller crystals: I. Face-sharing coupling and ground-state configuration