Disentangling Systematic and Idiosyncratic Risk for Large Panels of Assets