It might not be socially acceptable but an outburst of swearing after a DIY mishap or stubbing a toe can actually do some good.