Proactive-reactive detection and mitigation of intermittent faults in robot swarms