The Berkshire Hathaway CEO had some wise words for investors before announcing that he intends to step down.