Mother later came forward to claim newborn boy after he was taken to hospital