The Prince of Wales’ optimism on ending homelessness is not shared by the public, according to research which suggested many believe it cannot be prevented.