Glassy behaviour in disordered systems with nonrelaxational dynamics