Structural transitions in wormlike micelles