Text this: Interplay between population density and mobility in determining the spread of epidemics in cities