Model-Based Network Reconstruction from Cascade Dynamics