People in overcrowded homes will be offered alternative accommodation in a bid to improve compliance.