Gauge theory of gravity and supergravity on a group manifold