Theory of shot noise in single-walled metallic carbon nanotubes weakly coupled to nonmagnetic and ferromagnetic leads