Aggregate and agent-based models for the diffusion of innovation