The Welsh government should focus more resources on education, an economist says.