Rheological constitutive equation for a model of soft glassy materials