Company disables AI after bot starts swearing at customer, calls itself the ‘worst delivery firm in the world’