The Manchester Arena terror attack might have been prevented if MI5 had acted on key intelligence received in the months before the attack, an inquiry has found.