Cybersecurity agency where Trump fired boss was flagged repeatedly for poor performance