The two nominees for US vice-president, Tim Kaine and Mike Pence, squared off in their first and only debate of the election campaign.