The dominant role of surfaces in the hysteretic behavior of hybrid perovskites