Historic Darley Mill to be converted to housing