More than 1,800 people died in Northern Ireland in the last decade while waiting for a home, it can be revealed.