A series of serious breaches have likely contributed to the president's decision to reshuffle the security agencies