Patterning and polarization of cells by intracellular flows