Ruling party’s candidate declares victory in Istanbul