The Prince of Wales is working with private landlords to help prevent and reduce homelessness in the UK, it has been revealed.