Median pay reached $12.4 million for CEOs of the biggest US companies in 2018, setting a fourth straight post-recession high.