Jeremy Corbyn has condemned the IRA's bombing campaign during the Troubles after coming under pressure to distance himself from the group's activities.