Apple’s investment in the UK over the last five years has now surpassed £18 billion, with the technology giant’s engineering teams in the country doubling in that time, the iPhone maker has said.