Islamist militants attack four churches and a monastery in Iraq's second city as violence forces 500,000 to leave region.