DOC: Fixed timedelta docstring and examples
- [x] closes #23248
- [x] tests added / passed
- [x] passes `git diff upstream/master --name-only -- "*.py" | grep "pandas/" | xargs flake8`
- [x] passes `python scripts/validate_docstrings.py pandas.to_timedelta`
