Learning Robust Statistics for Simulation-based Inference under Model Misspecification