Samsung has said a broad rollout of artificial intelligence tools to its mobile devices has sparked a rise in the number of people in the UK switching to the firm from Apple’s iPhone.