Spread and dynamics of the COVID-19 epidemic in Italy: Effects of emergency containment measures