Theory of transport in carbon nanotubes