Erdogan and 500 dignitaries due to join first Muslim service in 86 years at site, which had been one of Christendom’s most significant cathedrals