Peru’s presidential contest is heading to a second round as neither frontrunner secured a majority, with left-wing parties gaining in congress.