A global study warns of rising levels of discontent with democracy, particularly in the UK and US.