Thousands of properties have been better protected since the “devastating” York Boxing Day floods of 2015, the Environment Agency has said.