The party suffered heavy defeats in July’s general election, losing dozens of MPs and being reduced to just nine seats.