Research has identified areas where people are most at risk of ending up homeless