The remarks are the first time since the exit referendum a decade ago that a prime minister has suggested to take the country back into the EU.