The finite element method for the mechanically-based model of non-local continuum