Porridge and crumpets are among the products included in a pre-watershed ban of junk food ads under new legislation to tackle childhood obesity.