Apple has released the latest desktop version of iTunes, introducing the biggest refresh of the software for several years as Apple contends with the rise of streaming music rivals such as Spotify.