Donald Trump has said he wishes UK ambassador Sir Kim Darroch well following his resignation over his leaked diplomatic cables.