Turkey’s ruling AK Party (AKP) candidate for Istanbul mayor said he had won Sunday’s election but his opposition rival said the declaration was premature.