Functional models for representations of current algebras and semi-infinite Schubert cells