Robustness of ISS Systems to Inputs with Limited Moving Average, with Application to Spacecraft Formations