Wrexham homes empty since 2004 to become social housing