Welsh NHS and schools underperforming despite funding increase, think tank says