A British bank has launched an AI tool in its app in a bid to stop customers falling victim to scams on online marketplaces.