The dynamics of cultural influence networks