Software bungle meant NHS Covid app failed to warn users to self-isolate