Aggregate Risk and the Choice between Cash and Lines of Credit