A ROSAT survey of Hickson's compact galaxy groups