Bullish value fashion chain Primark is taking flagging rival Matalan to court over a hoodie design.