Tidal capture of stars by a massive black hole