Four teenagers have gone on trial accused of fatally stabbing an 18-year-old at a bus stop in an attack driven by gang rivalry, a court has heard.