The EU is “fed up” with endless delays and wants to resolve Brexit by 31 October, the prime minister says.