A force-based model for adaptively controlling the spatial configuration of pedestrian subgroups at non-extreme densities