Team-building activities have a reputation for being lame, but when done properly, they are one of the best investments you'll make.