Unhealthy foods cannot be shown online or before 9pm under new rules to cut childhood obesity