Convex cocompact subgroups of mapping class groups