Align try_to_load_from_cache with huggingface_hub
# What does this PR do?

This PR completely align `try_to_load_from_cache` with its `huggingface_hub` counterpart (it's a copy-paste while just removing the `repo_type` argument) and adapts its use in `cached_file`. This is done before the next release of Transformers so that there is no breaking change if users start to adopt it (since the arguments are in a different order), and to make the transition (which will happen after the next release of `huggingface_hub`) easier.
_The documentation is not available anymore as the PR was closed or merged._<|||||>There is one on the HF hub side ;-) I just removed it here since it does not concern Transformers and we only the default value.<|||||>Perfect :)