The UK government will introduce a mandatory reading test for Year 8 students to address declining literacy rates.