JD Sports Fashion has taken an 80 per cent stake in Cosmos for an undisclosed fee