Three teenage girls surrounded a 75-year-old man before he was pushed, shoved, kicked and punched and then died in hospital the next day, a court heard.