News websites will have to ask readers to declare age or comply with new code, watchdog confirms