A dull stretch with nothing to do can leave the mind freer and more inventive than an hour of focused effort. Here is what the research actually found.