Evidence for a compact object in the aftermath of the extragalactic transient AT2018cow