A 19-year-old has been charged over his alleged role in the attack on a European tourist at the busy Melbourne beach.