Jeff Shell has left the US media giant over an “inappropriate relationship” he had with a colleague.