The work is designed to prevent flooding and futureproof the town