A-level and GCSE students in England will have results based on teacher assessments after U-turn