Pep Guardiola says Raheem Sterling could face weeks on the sidelines after suffering a hamstring injury - making him a doubt for the Champions League clash with Real Madrid.