Localized states and conductance gaps in metallic carbon nanotubes