A man has been charged with manslaughter after allegedly attacking a man as he walked home from work in Melbourne's CBD.