Coastal defence through wave farms