Diffusion of innovations in a social network: the influence of network topology