A finite deformation theory for the climbing habits and attachment of twining plants