Turkey ruling party orders purge after coup attempt