I haven't paid attention to Riker doing it, but when Picard does it, I always assume that it has to do with the fact that he mean business. He's straightening himself up, sitting up straight and pulling down his shirt to get all the wrinkles. It's like he's trying to make himself look more professional and put together so the crew will take him seriously.
I agree that it's more of a psychological thing than anything else.