Understanding how federal and state taxes apply to your benefits can help you keep more of your money. Here’s what you need to know to protect your retirement income from unnecessary taxation.