Learning from the past: inequalities and discrimination in psychiatry's chequered history