Former Pakistan PM Imran Khan apologises in contempt of court case