Prince William has insisted "systemic failure" is responsible for homelessness.