Warren Buffett, one of the world's richest men, said his company, Berkshire Hathaway, had sold all its shares in the four largest US airlines.