O2 users will have suspected scam and nuisance calls flagged to them before they pick up the phone via a new AI-powered tool, the mobile operator has said.