John McDonnell has pledged to set up a National Care Service to ensure that all people are guaranteed “dignity in retirement”.