Formula 1 has confirmed Apple will be the new broadcaster partner of the sport in the United States on a five-year deal.