A New Theory of Magnetic Storms