The -gh- represented a back of the throat sound no longer present in the language. Besides the words ending in -ght there are a number ending in -gh. I can't think of any ending in -gh- followed by any other letter but that doesn't mean there aren't any. But, no, it's not the remnant of any contraction.