More than 400 homes in York were better protected from flooding in 2024, the Environment Agency said on the ninth anniversary of the devastating Boxing Day floods.