The modelling of the latitude dependence of cosmic ray protons and electrons in the inner heliosphere