Millions in the UK will soon be asked to monitor who they have been near to combat coronavirus.