A Top-down Approach to Stress-testing Banks