Control of coherence in a ladder type system with double resonance optical pumping and electromagnetically induced transparency