A referendum on whether to allow the return of foreign military bases to Ecuador is failing, with more than 60% of the votes counted.