Large deviations for interacting particle systems: Joint mean-field and small-noise limit