UN chief declares women’s inequality ‘stupid’ and a global shame