Lloydspharmacy’s parent company McKesson has sold off its UK businesses to the private equity firm Aurelius Group for £477 million.