More than a fifth of people over 50 in England are living in a poor-quality home that could be making their health condition worse, a charity said.