Covariant description of canonical formalism in geometrical theories