Lift the bread pan out of the machine and fit the blade. Put the dough ingredients in the pan, following the order specified in the manual. Add the ground hazelnuts with the flour. Fit the pan into the machine and close the lid. Set to the dough programme. Grease a 20 cm (8 inch) loose-bottomed, round cake tin.
At the end of the programme turn the dough out on to a floured surface. Roll one-third of the dough to a 26 cm (10½ inch) round. Place it in the tin so it comes about 3 cm (1¼ inches) up the sides to make a case.
Dot one-third of the chocolate spread over the base and scatter with one-third of the nuts. Divide the remaining dough into 3 pieces and roll each to a 20 cm (8 inch) round. Place one layer in the tin and dot with another third of the chocolate spread and nuts. Continue layering finishing with a layer of dough.
Brush the dough with beaten egg. Press the chopped chocolate and reserved nuts into the dough. Cover loosely with oiled clingfilm and leave to rise in a warm place for 45—60 minutes or until about half the size again.
Bake in a preheated oven, 200°C (400°F), Gas Mark 6, for 50 minutes. Cover it with foil if the top starts to over-brown. Transfer to a wire rack to cool. Serve dusted with cocoa powder and icing sugar.