The party was ahead of the ruling Conservatives according to a forecast for a TV company following Sunday’s election.