A Continuum Model of Stable Matching with Finite Capacities