A comedian has lost a High Court claim against a production company founded by Steve Coogan over allegations of copying a sitcom.