Britain will switch to Apple and Google technology for its COVID-19 test-and-trace app, ditching its homegrown system which was not working well enough on Apple’s iPhone, the government said on Thursday.