rupee ends flat; sharp rise in gold