Fault in NHS Covid app meant thousands at risk did not quarantine