Background model of the CUPID-0 experiment