A mean field approach to model flows of agents with path preferences over a network