Glassy behaviour in pyrochlores: a spin glass approach