A non-local rheology for dense granular flows