Electron spin resonance study of carbon nanotubes