Thousands have fled clashes between armed groups on the border with Venezuela, dashing hopes of peace in Colombia.