Barcelona have confirmed that Lionel Messi is ruled out for a period of six to eight weeks after suffering a tear to a muscle in his left thigh.