Morocco's textile and clothing sector recorded export growth of nearly 4% last year, with Spain remaining its largest market.