Technology giant Apple has announced it will use its cash to start paying a dividend to shareholders and to buy…