The UK is releasing 5,000 prisoners to free up space for anti-immigration protesters.