Chemical evolution of the Milky Way: constraints on the formation of the thick and thin discs