Hierarchically cocompact classifying spaces for mapping class groups of surfaces