Empty mills could provide thousands of homes - Historic England