Health Secretary Matt Hancock has revealed he is self-isolating for the next six days after being "pinged" by the NHS coronavirus app.