A foliated Hitchin-Kobayashi correspondence