Elon Musk called Sean "Diddy" Combs a "good friend" after he invested in X, formerly Twitter, according to a book written by New York Times journalists.