A UK company that has supplied socks to Britain's armed forces for 80 years has lost its contract to a firm in Northern Ireland which makes its socks in China.