Barcelona's Sandro Ramirez has been ruled out for up to seven weeks with a hamstring injury and will not be able to feature in the club's key matches against Arsenal and Real Madrid.