Election Commission dismisses contempt cases against Imran Khan as he submitted written apologies to ECP