Investors tend to shift to health-care and utilities stocks when economic growth slows.