Turkey's ruling AKP struggles to form government following election losses