Continuum model for river networks