The billionaire investor, now 94, said he would be resigning as CEO at the end of the year. He spoke at Berkshire Hathaway’s annual shareholder meeting known as “Woodstock for Capitalists.”