Everton midfielder James McCarthy will be out for three weeks after undergoing groin surgery, confirmed manager Ronald Koeman.