Analysis of the shifted boundary method for the Stokes problem