More than 100 local councils in England and Wales have not prosecuted any rogue landlords in the last five years despite getting thousands of complaints.