Prime Minister Boris Johnson rules out election before October 31