Songs generated by artificial intelligence now account for just under half the songs on streaming services and are diverting royalties from human artists.