Police Scotland has been warned of the risk of “institutional capture” amid the Sandie Peggie tribunal.