Jeremy Corbyn has pledged to “save lives this winter” by ending rough sleeping in the UK within five years.