The maker of Post-it Notes, Scotch tape and Command strips beat second-quarter earnings expectations and raised its full-year outlook.