A new defence scheme to protect 1,650 properties in East Rhyl from coastal flooding has been completed almost a year ahead of schedule.