Thousands of Iraqis flee homes amid rise in violence