CDs offer guaranteed returns, but locking up too much cash can leave you short when you need it. Here's how to find the right amount.