Network formation models and traffic on networks