Almost three in 10 children in Northern Ireland are not achieving the expected levels in literacy and numeracy at the end of primary school, data has shown.