Minimal hypersurfaces with bounded index