Solvable delay model for epidemic spreading: the case of Covid-19 in Italy