New South Wales has recorded 18 new locally-acquired coronavirus cases, prompting the state to tighten restrictions on Greater Sydney for New Years Eve.