Team cracks mystery of how plants ‘do the twist’