Two British teenagers made hoax calls about bombs and shootings to US police targeting high-profile influencers while they were livestreaming on YouTube, a court has heard.