Algorithm downgrades nearly 40% of English exam results, hitting poorer students hardest