Popularity and Novelty Dynamics in Evolving Networks