The security aspect of employee offboarding

Offboarded employees often retain access to work information. What are the risks, and how to deal with them?