Local models in the ramified case I. The EL-case