Former health secretary Matt Hancock is to give evidence at the official Covid-19 inquiry.