Lego says sales surged in the first half of the year as families stuck at home looked for things to do.