Turkey was once held up as the great exemplar of Islamic democracy, yet basic freedoms of speech and association have been slowly eroded under Erdogan, who now oversees something approaching a dictatorship.