Trigger warnings flagging potentially distressing content may encourage people to view the post, a study has revealed.