Police Scotland officers may have acted as "super-spreaders" during the pandemic as expert advice was "ignored" by the Scottish government and the force's ex-chief constable, an inquiry heard.