Latest figures on the performance of Scottish pupils have been described as “very worrying” after only two in five S4 students gained a key qualification in maths.