Over 5,000 arrested in Kashmir valley since Aug 4: Govt