US president Barack Obama has weighed into the gun control debate, nearly a week after the deadly Colorado shooting.