Multi-wavelength campaign on NGC 7469. VI. Photoionisation modelling of the emission line regions and the warm absorber