Geometrically exact multi-layer beams with a rigid interconnection