Conformal field theories via Hamiltonian reduction