Theory of Self-Assembled Tubules and Helical Ribbons