Being open and honest is meant to build trust in science but research suggests it can sometimes have the opposite effect.