There was “open warfare” between government departments during the Covid-19 pandemic, the former head of the UK’s Vaccines Taskforce has said.